package com.ssy.lingxi.pay.api.dto.request.eAccount;

import lombok.Data;

import javax.validation.constraints.*;
import java.io.Serializable;

/**
 * e账号平台转账实体
 * @author jw.chen
 * @version 2.0.0
 * @date 2021/12/9
 */
@Data
public class PlatFormTransferRequest implements Serializable {
    private static final long serialVersionUID = -4522134464552068218L;

    /**
     * 会员id(收款方)
     */
    @NotNull(message = "会员id要大于0")
    @Positive(message = "会员id要大于0")
    private Long memberId;

    /**
     * 会员角色id(收款方)
     */
    @NotNull(message = "角色id要大于0")
    @Positive(message = "角色id要大于0")
    private Long memberRoleId;

    /**
     * 商户订单号
     */
    @NotBlank(message = "支付订单编码不能为空")
    @Size(max = 32, message = "支付订单编码最长32个字符")
    private String orderCode;

    /**
     * 金额
     */
    @NotNull(message = "金额要大于等于0")
    @PositiveOrZero(message = "金额要大于等于0")
    private Double payMoney;

}
